/*
** aaa.c for  in /home/georgi_v/rendu
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Wed Oct  2 08:52:04 2013 georgi_v
** Last update Fri Dec  6 19:42:17 2013 georgi_v
*/

#include "my.h"

void	print_reverce(int n)
{
  int	temp;
  char	c;

  if (n != 0)
    {
      print_reverce(n/10);
      temp = n % 10;
      temp = temp * -1;
      c = temp + '0';
      my_putchar(c);
    }
}

void	my_putnbr(int nb)
{
  if (nb > 0)
    nb = nb * -1;
  else
    my_putchar('-');
  print_reverce(nb);
}
